using System.Collections.Generic;

namespace DataAssociations.AssociationMiningAlgorithms
{
    public class FrequentPattern
    {
        public FrequentPattern(List<string> items, int frequency)
        {
            Items = items;
            Frequency = frequency;
        }

        private List<string> _items;
        public string ItemString { get; private set; }
        public List<string> Items
        {
            get { return _items; }
            set
            {
                _items = value;
                ItemString = string.Join("-", _items);
            }
        }
        public int Frequency { get; private set; }
    }
}